home *** CD-ROM | disk | FTP | other *** search
- global NULLrect, gHotRects, gObjects, sQTCharSprite
-
- on pickDoctor playCount
- set doctorObj to getaProp(gObjects, #Doc11Vid)
- if (getaProp(gCurKeyList, #RefName) = #H20) or (getaProp(gLastKeyList, #RefName) = #H20) then
- if getOne(getaProp(doctorObj, #condList), #opTheater) = 0 then
- if playCount = 1 then
- set State to #opTheater1
- MakeDynamic(#Doc11Vid, #curCond, #opTheater)
- else
- set State to #opTheater2
- end if
- else
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- set State to #OffScreen
- end if
- else
- if getaProp(getaProp(gStates, #Conditions), #Heart) = #true then
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- if getOne(getaProp(doctorObj, #condList), #heartSolved) = 0 then
- set State to #heartSolved
- MakeDynamic(#Doc11Vid, #curCond, #heartSolved)
- else
- set State to #OffScreen
- end if
- else
- if getaProp(doctorObj, #h12Count) >= 1 then
- if playCount = 1 then
- set State to #Dead1
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dnd3.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- else
- if playCount = 2 then
- set State to #Dead2
- else
- if playCount = 3 then
- set State to #Dead3
- else
- set State to #OffScreen
- end if
- end if
- end if
- else
- if getaProp(doctorObj, #slippingCond) = #true then
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- if getOne(getaProp(doctorObj, #condList), #slipping) = 0 then
- set State to #slipping
- MakeDynamic(#Doc11Vid, #curCond, #slipping)
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dnd2.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- else
- set State to #OffScreen
- end if
- else
- if getaProp(doctorObj, #messingUpCond) = #true then
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- if getOne(getaProp(doctorObj, #condList), #messingUp) = 0 then
- set State to #messingUp
- MakeDynamic(#Doc11Vid, #curCond, #messingUp)
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dnd1.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- else
- set State to #OffScreen
- end if
- else
- if getaProp(getaProp(gStates, #Conditions), #Defibrillate) = #true then
- if getaProp(getaProp(gObjects, #TubeObj), #Aquired) = #false then
- if getOne(getaProp(doctorObj, #condList), #defibSolved1) = 0 then
- if playCount = 1 then
- set State to #defibSolved1
- if getaProp(doctorObj, #curCond) = #defibSolved1 then
- setaProp(getaProp(gHotRects, (100 * getaProp(getaProp(gObjects, #Doc11vidrect), #SpriteNum)) + 1), #rect, rect(0, 0, 560, 336))
- end if
- MakeDynamic(#Doc11Vid, #curCond, #defibSolved1)
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dps1.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- MakeDynamic(#Doc11vidrect, #Hotrect, [rect(0, 0, 560, 336)])
- else
- set State to #defibSolved2
- MakeDynamic(#Doc11Vid, #curCond, #defibSolved2)
- MakeDynamic(#Doc11vidrect, #Hotrect, [rect(318, 40, 558, 256)])
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dps2.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- setaProp(getaProp(gHotRects, (100 * getaProp(getaProp(gObjects, #Doc11vidrect), #SpriteNum)) + 1), #rect, NULLrect)
- end if
- else
- if getOne(getaProp(doctorObj, #condList), #defibSolved2) = 0 then
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- MakeDynamic(#Doc11Vid, #curCond, #defibSolved2)
- if getOne(getaProp(doctorObj, #Playlist), "H11dps2.mov") = 0 then
- set State to #defibSolved2
- set Playlist to getaProp(doctorObj, #Playlist)
- add(Playlist, "H11dps2.mov")
- MakeDynamic(#Doc11Vid, #Playlist, Playlist)
- else
- set State to #OffScreen
- end if
- else
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- set State to #OffScreen
- end if
- end if
- else
- set State to #OffScreen
- end if
- else
- if getaProp(getaProp(gStates, #Conditions), #ShortStock) = #true then
- MakeDynamic(#Doc11vidrect, #Hotrect, [NULLrect])
- if getOne(getaProp(doctorObj, #condList), #shrtStckSlvd) = 0 then
- set State to #shrtStckSlvd
- MakeDynamic(#Doc11Vid, #curCond, #shrtStckSlvd)
- else
- set State to #OffScreen
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- MakeDynamic(#Doc11Vid, #State, State)
- MakeDynamic(#Doc11Vid, #DisplayState, State)
- if playCount > 1 then
- DoCharacterMovie(#Doc11Vid)
- end if
- end
-
- on doDoc11vid
- set OBj to getaProp(gObjects, #Doc11Vid)
- set clickCount to getaProp(OBj, #clickCount) + 1
- MakeDynamic(#Doc11Vid, #clickCount, clickCount)
- pickDoctor(clickCount)
- set the movieRate of sprite sQTCharSprite to 0
- set the movieTime of sprite sQTCharSprite to 0
- set the movieRate of sprite sQTCharSprite to 1
- end
-